#!/usr/bin/env python
# encoding: utf-8
"""
@author:zwb
@file: test.py
@contact: zwb15083976291@163.com
@time: 2022/01/19
"""

import multiprocessing
import threading
import time
from utils.redis_clients import RedisClient


class MyThreading(multiprocessing.Process):

    def run(self) -> None:
        num = 0
        while True:
            RedisClient().set(key="demo01", value=num)
            print("检查redis")
            print("获取过期的账号")
            print("修改过期的账户数据库信息")
            time.sleep(1)
            num += 1
